package com.zhentao.controller;

import com.zhentao.model.article.dto.ArticleInfoDto;
import com.zhentao.model.article.dto.CollectionBehaviorDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.CollectionBehaviorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/v1")
public class CollectionBehaviorController {
    @Autowired
    private CollectionBehaviorService collectionBehaviorService;

//     文章收藏
    @PostMapping("collection_behavior")
    public ResponseResult collectionNBehavior(@RequestBody CollectionBehaviorDto dto){
        return collectionBehaviorService.collectionNBehavior(dto);

    }

//

}
